<?php
	/*
	 *  Copyright 2025, Ole-Henrik Jakobsen
	 *
	 *  This file is part of Disk Location for Unraid.
	 *
	 *  Disk Location for Unraid is free software: you can redistribute it and/or modify
	 *  it under the terms of the GNU General Public License as published by
	 *  the Free Software Foundation, either version 3 of the License, or
	 *  (at your option) any later version.
	 *
	 *  Disk Location for Unraid is distributed in the hope that it will be useful,
	 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
	 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 *  GNU General Public License for more details.
	 *
	 *  You should have received a copy of the GNU General Public License
	 *  along with Disk Location for Unraid.  If not, see <https://www.gnu.org/licenses/>.
	 *
	 */
	 
//	Common settings
//	Variable name		Default value			Description
//	--------------------------------------------------------------------------------
	$bgcolor_parity =		'AA2D2F';		// background color for Unraid parity disks / critical temp // old default: CA3F33
	$bgcolor_unraid =		'BE7317';		// background color for Unraid data disks / warning temp // old default: EF6441 / CA7233
	$bgcolor_cache =		'5B7845';		// background color for Unraid cache disks / normal temp // old default: FF884C / CABD33
	$bgcolor_others =		'7C7C7C';		// background color for unassigned/other disks / unknown temp // old default: 41B5EF / 3398CA
	$bgcolor_empty =		'303030';		// background color for empty trays // old default: AAAAAA / 7C7C7C
	$tray_reduction_factor =	10;			// set the scale divider for the mini tray layout
	$force_orb_led =		0;			// set the LED to 0: show Unraid icons (triangle warning / hot critical) - 1: show circle LEDs (color coded circles).
	$device_bg_color =		1;			// choose background for the drives, Drive Type (0) or Heat Map (1)
	$serial_trim =		 	0;			// make serial number friendlier, substr() value -99 - 99.
	$ignore_multi_lun = 		0;			// workaround to enable drives and devices with multiple addresses.
	$allow_unraid_edit =		0;			// (dis)allow editing of UNRAID config.
	$auto_backup_days = 		30;			// automatically make a backup during installation if the latest one is more than [$auto_backup_days] days old
	$displayinfo =	array(					// this will store an array of display settings for the "Device" page.
		'tray' => 1,
		'leddiskop' => 1,
		'ledsmart' => 1,
		'ledtemp' => 1,
		'temperature' => 1,
		'hideemptycontents' => 0,
		'flashwarning' => 0,
		'flashcritical' => 1
	);
	
	$select_db_info = "group,tray,pool,name,node,manufacturer,model,serial,capacity,cache,rotation,formfactor,read,written,endurance,manufactured,purchased,expires,firmware,comment";
	$sort_db_info = "asc:group,tray";
	
	$select_db_smart = "status,model,serial,endurance,manufactured,expires,name";
	$sort_db_smart = "desc:expires";
	
	// mandatory: group,tray,locate,color
	$select_db_trayalloc = "device,node,model,serial,capacity,rotation,manufactured,purchased,warranty,comment";
	$sort_db_trayalloc = "asc:group,tray";
	
	$select_db_drives = "manufacturer,model,serial,capacity,rotation,formfactor,manufactured,purchased,removed,warranty,comment";
	$sort_db_drives = "asc:purchased,serial";
	
	//not used, but prepared just in case it will be added in the future:
	$select_db_devices = "[huge]*pool*[/huge] name node capacity rotation formfactor [color:FFFFFF]*[serial]*[/color]\r\nmanufacturer model\r\ncomment";
	
//	Group settings
	
	$group_color = 		'';		// set default group background color to "empty/disabled"
	$grid_count =		'column';	// how to count the trays: [column]: trays ordered from top to bottom from left to right | [row]: ..from left to right from top to bottom
	$grid_columns =		4;		// number of horizontal trays
	$grid_rows =		6;		// number of verical trays
	$grid_trays = 		'';		// total number of trays. default this is (grid_columns * grid_rows), but we choose to add some flexibility for drives outside normal trays
	$disk_tray_direction =	'h';		// direction of the hard drive trays [h]horizontal | [v]ertical
	$tray_direction =	1;		// tray count direction
	$tray_start_num = 	1;		// tray count start number, 0 or 1
	$tray_width =		400;		// the pixel width of the hard drive tray: in the horizontal direction ===
	$tray_height =		70;		// the pixel height of the hard drive tray: in the horizontal direction ===
	$tray_pos = 		'left';		// sets the float (next groups positioning) of the Disk Tray Group Layout on the Dashboard. left is default , right and none can be chosen.
	$tray_align =		'center';	// sets the alignment of the Disk Tray Group Layout on the Dashboard. center is default, left and right can be chosen.
	$tray_align_txt =	'center';	// sets the alignment of the Disk Tray Group Name on the Dashboard. center is default, left, right and vertical can be chosen.
	
	
//	Benchmark settings
	
	$bench_iterations = 	5;		// run X amount of times
	$bench_median = 	1;		// skip slowest and fastest results before calculating the average
	$bench_force = 		1;		// force run benchmark regardless of SMART power status
	$bench_auto_cron =	0;		// run benchmark monthly, $bench_force will be ignored and set to 1 during cronjob.
	$bench_last_values =   12;		// set number of benchmarks to include, from the last one.
?>
